package org.zenheart.fxnative;

import javafx.application.Application;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.aot.AbstractAotProcessor;
import org.zenheart.fxnative.context.UiContext;

@SpringBootApplication
@EnableAspectJAutoProxy
public class FxNativeApplication {

    public static void main(String[] args) {
        if (!Boolean.getBoolean(AbstractAotProcessor.AOT_PROCESSING)) {
            new Thread(() -> Application.launch(UiContext.class, args)).start();
        }
        SpringApplication.run(FxNativeApplication.class, args);
    }
}
